/**
 * 
 */
package com.demo2do.core.redis;



/**
 * @author Wilson
 */
/**
 * @author wilson
 *
 */
public class CompositeRedisAccessor implements RedisAccessor {
	
	private GenericRedisSupport genericRedisSupport;

	/**
	 * @param genericRedisSupport
	 */
	public void setGenericRedisSupport(GenericRedisSupport genericRedisSupport) {
		this.genericRedisSupport = genericRedisSupport;
	}
	
	/* (non-Javadoc)
	 * @see com.demo2do.core.redis.RedisAccessor#evaluateAsInt(java.lang.String)
	 */
	public int evaluateAsInt(String key) {
		return genericRedisSupport.getAsInt(key);
	}

	/* (non-Javadoc)
	 * @see com.demo2do.core.redis.RedisAccessor#evaluate(java.lang.String)
	 */
	public String evaluate(String key) {
		return genericRedisSupport.getValue(key);
	}

	
}
